import React from 'react'
import { Text, View, ScrollView } from 'react-native'
import { withNavigationItem } from 'react-native-navigation-hybrid'

import styles from './Styles'

export default withNavigationItem({
  titleItem: {
    title: 'The Origin Title',
  },
})(PassOptions)

function PassOptions() {
  return (
    <ScrollView
      contentInsetAdjustmentBehavior="never"
      automaticallyAdjustContentInsets={false}
      contentInset={{ top: 0, left: 0, bottom: 0, right: 0 }}>
      <View style={styles.container}>
        <Text style={styles.welcome}>Attention: the title is not 'The Origin Title'</Text>
      </View>
    </ScrollView>
  )
}
